html {
  padding: 0;
  overflow-x: hidden; }

form {
  margin: 0; }

body {
  line-height: 1.6em;
  padding: 10px;
  margin: 0;
  background-color: #fff; }
  body, body input {
    font-family: helvetica, sans-serif;
    font-size: 13px;
    font-weight: 400; }
  body img {
    vertical-align: middle; }
  body * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box; }

.pull-right {
  float: right; }

.container, section, header, footer {
  width: 100%;
  max-width: 800px;
  margin: 0 auto; }

header {
  position: relative;
  line-height: 1;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 10px;
  box-shadow: inset d 0 3px black;
  *zoom: 1; }
  header:before, header:after {
    content: " ";
    display: table; }
  header:after {
    clear: both; }

section {
  *zoom: 1;
  overflow: hidden; }
  section:before, section:after {
    content: " ";
    display: table; }
  section:after {
    clear: both; }
  section.story.queued, section.groups, section.list {
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd; }

.story.queued .button {
  display: inline-block; }

.story .button {
  display: none; }

.story .emoji {
  margin-bottom: 4px; }

.loading {
  background-color: #fff;
  padding: 100px 0 120px;
  text-align: center;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 2px;
  font-weight: bold; }
  .loading + .no-result {
    display: none; }

.label {
  font-weight: bold;
  color: #368;
  border-radius: 2px;
  line-height: 1;
  padding: 6px 10px;
  margin: 0 0 10px 0;
  border: 1px solid #cde;
  display: inline-block;
  vertical-align: baseline;
  zoom: 1;
  *display: inline;
  *vertical-align: auto; }
  .label:before {
    content: attr(href); }
  .label.active {
    background-color: #def; }

a {
  text-decoration: none;
  cursor: pointer;
  color: #08c; }
  a img {
    width: 16px;
    height: 16px; }

input:invalid {
  visibility: hidden; }

ul {
  text-align: left;
  padding: 0;
  margin: 0; }

.plain {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  border: 0;
  box-shadow: none;
  background-color: transparent; }
  .plain:focus {
    box-shadow: none;
    outline: none; }

.emoji-group {
  display: block;
  width: 100%;
  font-weight: bold;
  font-size: 20px;
  padding: 10px 0; }

.emoji-wrapper {
  display: inline-block;
  vertical-align: baseline;
  zoom: 1;
  *display: inline;
  *vertical-align: auto;
  margin: 0;
  width: 180px;
  padding: 5px 0;
  overflow: hidden;
  white-space: nowrap; }
  .emoji-wrapper .keywords {
    font-size: 0; }
  .emoji-wrapper .emoji {
    position: absolute; }
  .emoji-wrapper input {
    margin-left: 25px; }

ul.hide-text .emoji-wrapper {
  width: 30px; }
  ul.hide-text .emoji-wrapper .emoji {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1); }
ul.hide-text input {
  display: none; }

ul, li {
  list-style-type: none; }

.button {
  line-height: 1;
  padding: 10px 9px 9px;
  margin-left: 10px;
  display: inline-block;
  vertical-align: baseline;
  zoom: 1;
  *display: inline;
  *vertical-align: auto;
  vertical-align: bottom;
  background-color: #fff;
  border-radius: 3px;
  border: 1px solid #ace;
  text-transform: uppercase;
  font-weight: bold; }
  .button.small {
    padding: 5px; }
  .button:hover {
    background-color: #36a;
    border-color: #36a;
    color: #fff; }

.input-search {
  min-height: 34px;
  padding: 7px 8px;
  outline: none;
  color: #333;
  background-color: #fafafa;
  background-repeat: no-repeat;
  background-position: right center;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
  -webkit-transition: all 0.2s ease-in;
  -moz-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
  width: 240px;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  -ms-appearance: textfield;
  -o-appearance: textfield;
  appearance: textfield; }
  .input-search:hover {
    background-color: #fff; }
  .input-search:focus {
    border-color: #51a7e8;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 5px rgba(81, 167, 232, 0.5); }
  .input-search::-webkit-search-cancel-button, .input-search::-webkit-search-decoration {
    -webkit-appearance: none; }

input.queue {
  width: 400px;
  text-align: center;
  padding: 4px; }

.story img {
  width: 20px; }

.alert {
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: none;
  position: fixed;
  margin: auto;
  left: 50%;
  width: 200px;
  margin-left: -100px;
  top: 10px;
  background: rgba(10, 50, 90, 0.7);
  color: #fff;
  font-weight: bold;
  padding: 7px;
  text-align: center;
  border-radius: 5px; }

.emoji {
  display: inline-block;
  vertical-align: baseline;
  zoom: 1;
  *display: inline;
  *vertical-align: auto;
  text-indent: -9999px;
  overflow: hidden;
  -webkit-transform: scale(0.8);
  -moz-transform: scale(0.8);
  -ms-transform: scale(0.8);
  -o-transform: scale(0.8);
  transform: scale(0.8);
  cursor: pointer; }

[data-clipboard-text] {
  cursor: pointer; }

.no-result {
  background-color: #f9f9f9;
  padding: 30px;
  text-align: center;
  margin-bottom: 10px;
  border-radius: 3px; }

code {
  background-color: #f8f8f8;
  border: 1px solid #aaa;
  padding: 0 2px;
  border-radius: 3px;
  color: #666;
  font-family: Monaco, monospace;
  font-size: 11px; }

.tips {
  color: #777; }

@media (max-width: 480px) {
  .input-search {
    width: 60px;
    position: absolute; }
    .input-search:focus {
      width: 100%; }

  section input.queue {
    width: 100%; }

  input {
    font-size: 14px; }

  ul {
    padding: 0; }

  .emoji-wrapper {
    padding: 0; } }
